package com.example.java_message_queue.mqserver.core;

// 这个类暂且不使用. 这个是消费消息的回调里的一个参数.
public class Envelope {
    // 消息序号
    private long deliveryTag;
    private String exchangeName;
    private String routingKey;

    public Envelope(long deliveryTag, String exchangeName, String routingKey) {
        this.deliveryTag = deliveryTag;
        this.exchangeName = exchangeName;
        this.routingKey = routingKey;
    }

    public long getDeliveryTag() {
        return deliveryTag;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public String getRoutingKey() {
        return routingKey;
    }
}
